grant: Release domain lock on 'map' path in cache_flush
authorGeorge Dunlap <george.dunlap@citrix.com>
Tue, 27 Feb 2018 11:16:55 +0000 (11:16 +0000)
committerGeorge Dunlap <george.dunlap@citrix.com>
Tue, 27 Feb 2018 11:19:27 +0000 (11:19 +0000)
commit156b29fca10fd25065fc501eb4b47cff931086f2
tree2b19c2a00489186b555711fbd76de966f53874d3
parent5b0426207998cd1f381b46299907bbcdf8bd240d
grant: Release domain lock on 'map' path in cache_flush

common/grant_table.c:cache_flush() grabs the rcu lock for the current
domain, but only releases it on error paths.

Note that this is not a security issue, as the preempt count is used
exclusively for assertions at the moment.

Signed-off-by: George Dunlap <george.dunlap@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/grant_table.c